﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WX_Service.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnDo").click(function () {
                $.ajax({
                    type: "post",
                    url: "http://localhost/WX/wx_service.asmx/GetInfo",
                    data: { openId: '123', NickName: '会飞的鱼', formId: '888' },
                    dataType: "json",
                    success: function (data) {
                        alert('成功');
                    }
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <input type="button" id="btnDo" value="调用webservice" />
    </div>
    </form>
</body>
</html>
